package com.example.demo;

import java.io.IOException;
import java.util.Properties;

/**
 * ClassName: PropertiesUtil
 * Package: com.example.demo
 * Description: @Version 1.0
 */
public class PropertiesUtil {
    private static Properties properties=null;
    static{
        try {
            properties=new Properties();
            properties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream("jdbc.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public static String get(String key){
        return properties.getProperty(key);
    }
}
